require(["core", "jQuery", "coAjax", "hash_routie", "queryString", "href"], function(jSouper, $, coAjax, hash_routie, QueryString, href) {
	hash_routie.on("newbus", function() {});
	App.set("$Event.newbus.build_bus", function() {
		alert("商家账号创建中");
		var newbus = App.get("$Cache.newbus") || {};
		var is_secondary_domain = newbus.is_secondary_domain = !newbus.use_self_domain;
		newbus.domain = is_secondary_domain ? newbus.name : newbus.domain;
		coAjax.post(appConfig.admin.add_bus, newbus, function(result) {
			alert("success", "商家站点创建完成");
		});
	});
});